Ext.define('jwawa.erp.login.LoginShell', {
    extend: 'jwawa.erp.framework.ShellContainer',
//    mixins:['jwawa.erp.login.LoginHandler'],
    handlerClass: 'jwawa.erp.login.LoginHandler',
    height: 136,
    width: 292,
    layout: {
        type: 'fit'
    },
    items: [
        {
            xtype: 'form',
            itemId: 'loginFormPanel',
            url: '/login/verify',
            plugins:[{ptype: 'jwawaSubmitPlugin'}],
            layout: {
                type: 'column'
            },
            frame: true,
            bodyPadding: 10,
            buttonAlign: 'center',
            title: 'Demo ERP',
            fieldDefaults: {
                entity: 'sso_login_accounts'
            },
            items: [
                {
                    itemId: 'loginNameField',
                    xtype: 'textfield',
                    fieldLabel: '登录名',
                    name:'login_name',
                    labelAlign: 'left',
                    labelWidth: 50,
                    selectOnFocus: true,
                    allowBlank: false,
                    columnWidth: 1
                },
                {
                    xtype: 'textfield',
                    fieldLabel: '密　码',
                    name:'login_pwd',
                    inputType: 'password',
                    labelAlign: 'left',
                    kbSubmit: true,
                    labelWidth: 50,
                    selectOnFocus: true,
                    allowBlank: false,
                    columnWidth: 1
                }
            ],
            buttons: [
                {
                    text: '忘记密码?',
                    style: {
                        marginRight: '40px'
                    }
                },
                {
                    text: '确定',
                    action:'confirm'
                },
                {
                    text: '清空',
                    action:'reset'
                }
            ]
        }
    ]
});